Skip to content

fix: Support NodeJS 24 build env.#4401

Merged
GordonSmith merged 1 commit into
hpcc-systems:candidate-3.x.xfrom
GordonSmith:NODEJS_24
Jun 26, 2025
Merged

fix: Support NodeJS 24 build env.#4401
GordonSmith merged 1 commit into
hpcc-systems:candidate-3.x.xfrom
GordonSmith:NODEJS_24

Conversation

@GordonSmith
Copy link
Copy Markdown
Member

@GordonSmith GordonSmith commented Jun 25, 2025

fix: Add support for NodeJS 24

Checklist:

  • The commit message is properly formatted and free of typos.
    • The commit message title makes sense in a changelog, by itself.
    • The commit message includes a "fixes" reference if appropriate.
    • The commit is signed.
  • The change has been fully tested:
    • I have viewed all related gallery items
    • I have viewed all related dermatology items
  • There are no similar instances of the same problem that should be addressed
    • I have addressed them here
    • I have raised new issues to address them separately

Testing:

@GordonSmith GordonSmith requested a review from Copilot June 25, 2025 12:57

This comment was marked as outdated.

@GordonSmith GordonSmith force-pushed the NODEJS_24 branch 3 times, most recently from 7c2b5d4 to 2d5318b Compare June 26, 2025 10:12
@GordonSmith GordonSmith changed the title fix: ecl-lang getting overwritten bye vite fix: Support NodeJS 24 build env. Jun 26, 2025
@GordonSmith GordonSmith requested review from Copilot and jeclrsg June 26, 2025 14:52
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for NodeJS 24 by updating CI workflows, introducing a new type-leaks test suite, and bumping dependency versions across packages.

  • Introduce tests/type-leaks suite with Vitest configuration, tests, and documentation
  • Add test-type-leaks script and update GitHub Actions to use Node.js 24
  • Bump package versions in various package.json files

Reviewed Changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/type-leaks/vitest.config.ts Add Vitest configuration for the type-leaks test suite
tests/type-leaks/type-dependencies.spec.ts New test to enforce declared type-only dependencies
tests/type-leaks/package.json Manifest for the type-leaks test project
tests/type-leaks/README.md Documentation for running and understanding the new tests
packages/markdown-it-plugins/package.json Move @types/markdown-it into dependencies
packages/esbuild-plugins/package.json Bump versions of esbuild, vite, and related plugins
packages/dgrid-shim/package.json Update dojo-webpack-plugin to a newer patch version
package.json Add test-type-leaks npm script
.github/workflows/update-docs.yml Change Node.js version to 24 for docs update workflow
.github/workflows/release-please.yml Change Node.js version to 24 for release workflow
Comments suppressed due to low confidence (3)

tests/type-leaks/README.md:34

  • The README instructs to use cd tests/types, but the directory is named tests/type-leaks. Please update the path to cd tests/type-leaks.
cd tests/types

tests/type-leaks/README.md:13

  • The test implementation scans files under the types/ directory, not src/. Please update the documentation to reflect the actual scanned paths.
1. **TypeScript source files**: Scans all `.ts` files in each package's `src/` directory

tests/type-leaks/vitest.config.ts:5

  • [nitpick] The name field is set to types, which may be too generic. Consider renaming it to type-leaks to better reflect the test suite's purpose.
        name: "types",

Comment on lines +80 to +81
// Import declarations
if (node.type === "ImportDeclaration" && node.source?.value) {
Copy link

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The import extraction logic duplicates handling for value and type imports separately. Consider merging these conditions into a single block to reduce code duplication.

Suggested change
// Import declarations
if (node.type === "ImportDeclaration" && node.source?.value) {
// Import declarations (value and type imports)
if (node.type === "ImportDeclaration" && node.source?.value && (node.importKind === "type" || node.importKind === undefined)) {

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

@jeclrsg jeclrsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GordonSmith Looks correct to me. Copilot had a few nitpick comments

@GordonSmith GordonSmith merged commit 8894980 into hpcc-systems:candidate-3.x.x Jun 26, 2025
1 check passed
@GordonSmith GordonSmith deleted the NODEJS_24 branch June 26, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants